package com.gxuwz.check.service.login.impl;

import com.gxuwz.check.dao.login.ILoginDao;
import com.gxuwz.check.model.entity.SysUserEntity;
import com.gxuwz.check.service.login.ILoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("LoginServiceImpl")
public class LoginServiceImpl implements ILoginService {

    @Autowired
    private ILoginDao loginDao;

    @Override
    public SysUserEntity getUserInfo(String userName) {
        SysUserEntity users = loginDao.findUserInfoByUserName(userName);
        return users;
    }

    @Override
    public SysUserEntity userInfo(String userName) {
        return loginDao.userInfo(userName);
    }
}
